import { ref } from 'vue'
import { ItemType } from "@/components/types/types"


const bill = ref<ItemType[]>([
  {
    label: '名称',
    model: 'name',
    message: '请输入名称',
    required: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '性别',
    model: 'sex',
    type: 'select',
    required: true,
    disabled: false,
    message: '请选择性别',
    selectData: [
      {
        label: '男',
        value: '0',
      },
      {
        label: '女',
        value: '1',
      }
    ]
  },
  // {
  //   label: '出生日期',
  //   setTime: 'setTime',
  //   model: 'birthday',
  //   message: '请选择出生日期',
  //   placeholder: '选择出生日期',
  //   valueFormat: 'YYYY-MM-DD',
  //   required: false,
  //   type: 'beginTime',
  //   timeType: 'date',
  // },
  {
    label: '电话',
    model: 'phone',
    message: '请输入电话',
    required: true,
    placeholder: '请输入',
    type: 'input'
  },
  // {
  //   label: '密码',
  //   model: 'password',
  //   message: '请输入密码',
  //   required: true,
  //   placeholder: '请输入',
  //   type: 'passWord'
  // },
  {
    label: '代理商',
    model: 'agencyId',
    placeholder: '请选择',
    url: 'base/agency/list',
    type: 'select',
    required: false,
    disabled: false,
    message: '请选择代理商',
    selectData: []
  },
  {
    label: '状态',
    model: 'status',
    placeholder: '请选择',
    type: 'select',
    required: true,
    disabled: true,
    dict: 'medical_represent_status',
    message: '请选择对账年度',
    selectData: []
  },
  {
    label: '从业年限',
    model: 'jobAge',
    message: '请输入从业年限',
    required: true,
    placeholder: '请输入从业年限',
    type: 'input'
  },
  {
    label: '推广医院',
    model: 'authorizedHospital',
    url: 'base/hospital/list-authorized',
    span: 12,
    message: '请输入推广医院',
    required: false,
    isslot: true,
    placeholder: '请输入推广医院(多选)',
    type: 'selectMultiple',
    selectData: [],
  },
  {
    label: '熟悉医院',
    model: 'specialHospital',
    span: 12,
    message: '请输入熟悉医院',
    required: true,
    placeholder: '请输入熟悉医院',
    type: 'textarea'
  },
  {
    label: '服务范围',
    model: 'serviceScope',
    span: 12,
    message: '请输入服务范围',
    required: true,
    placeholder: '请输入服务范围',
    type: 'textarea'
  },
  {
    label: '专长领域',
    model: 'specialField',
    span: 12,
    message: '请输入专长领域',
    required: true,
    placeholder: '请输入专长领域',
    type: 'textarea'
  },
])
interface Parmes {
  billingStatus?: number;
  accountTime?: any;
  setTime?: any,
  [propName: string]: any;
}
const datas = ref<Parmes>({
  setTime: null,
  accountTime: null,
  photoList: [
    {
      type: 1,
      category: 0,
      url: ''
    },
    {
      type: 1,
      category: 1,
      url: ''
    },
    {
      type: 2,
      category: 0,
      url: ''
    },
    {
      type: 3,
      category: 0,
      url: ''
    },
    {
      type: 4,
      category: 0,
      url: ''
    },
    {
      type: 4,
      category: 1,
      url: ''
    },
  ],
})
export default { bill, datas }